<style type="text/css">
.ellipsis {
    -moz-binding: url('ellipsis.xml#ellipsis');
}
</style>

<div class="ellipsis" style="width:100px;border: 1px solid red;overflow:hidden;">
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
</div>